package threadlocal;

public class Bank {

    private ThreadLocal<Integer> threadLocal = new ThreadLocal<Integer>() {
        @Override
        public Integer initialValue() {
            return 100;
        }
    };

    public Integer getInteger() {
        return threadLocal.get();
    }

    public void setInteger() {
        threadLocal.set(threadLocal.get() + 10);

    }
}
